import request from '@/utils/request'

// 查询入住登记列表
export function listCheckins(query) {
  return request({
    url: '/business/checkins/list',
    method: 'get',
    params: query
  })
}

// 查询入住登记详细
export function getCheckins(checkInId) {
  return request({
    url: '/business/checkins/' + checkInId,
    method: 'get'
  })
}

// 新增入住登记
export function addCheckins(data) {
  return request({
    url: '/business/checkins',
    method: 'post',
    data: data
  })
}

// 修改入住登记
export function updateCheckins(data) {
  return request({
    url: '/business/checkins',
    method: 'put',
    data: data
  })
}

// 删除入住登记
export function delCheckins(checkInId) {
  return request({
    url: '/business/checkins/' + checkInId,
    method: 'delete'
  })
}
